﻿// -----------------------------------------------------------------------
// <copyright file="JobsDescription_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class JobsDescription_BLL
    {
        public static List<JobDescription> GetAll(int shipID)
        {
            return JobsDescription_DAL.GetAll(shipID);
        }
        public static JobDescription GetNewJobDescription()
        {
            return JobsDescription_DAL.GetNewJobDescription();
        }
        public static bool Insert(JobDescription jobDescription)
        {
            return JobsDescription_DAL.Insert(jobDescription);
        }
        public static JobDescription GetDataByCode(string code, int shipID)
        {
            return JobsDescription_DAL.GetDataByCode(code, shipID);
        }
        public static JobDescription GetDataByName(string name, int shipID)
        {
            return JobsDescription_DAL.GetDataByName(name, shipID);
        }
        public static bool Update(JobDescription jobDescription)
        {
            return JobsDescription_DAL.Update(jobDescription);
        }
        public static bool Delete(JobDescription jobDescription)
        {
            return JobsDescription_DAL.Delete(jobDescription);
        }
        public static bool IsExits(JobDescription jobDescription)
        {
            return JobsDescription_DAL.IsExits(jobDescription);
        }
        public static bool IsRelationship(JobDescription jobDescription)
        {
            return JobsDescription_DAL.IsRelationship(jobDescription);
        }
        public static List<JobDescription> GetAllJob(int shipID)
        {
            return JobsDescription_DAL.GetAllJob(shipID);
        }

    }
}
